package com.bilibili.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

import lombok.Data;
import nonapi.io.github.classgraph.json.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

/**
 * @TableName t_video
 */
@TableName(value ="t_video")
@Data
@Document(indexName = "videos") //es索引
public class Video implements Serializable {

    @Id
    private Long id;

    @Field(type = FieldType.Long)
    private Long userId;

    private String url;

    private String thumbnail;

    @Field(type = FieldType.Text)
    private String title;

    private String type;

    private String duration;

    private String area;

    @Field(type = FieldType.Text)
    private String description;

    @Field(type = FieldType.Date)
    private Date createTime;

    @Field(type = FieldType.Date)
    private Date updateTime;

    private List<VideoTag> videoTagList;

    private Integer viewCount;

    private static final long serialVersionUID = 1L;
}